<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Login.ascx.vb" Inherits="Controls_Login" %>
<asp:LoginView ID="LoginView1" runat="server">
    <AnonymousTemplate>
        <asp:Login ID="Login1" runat="server">
            <LayoutTemplate>
            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass=".label">Username:</asp:Label>
            <asp:TextBox ID="Username" runat="server" CssClass=".input"/>
            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" CssClass=".label">Password:</asp:Label>
            <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass=".input"></asp:TextBox>
            <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me" />
            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
            <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ctl00$ctl01$Login1" CssClass=".input"/>
            <br />
            <small>
                <asp:HyperLink ID="lnkRegister" runat="server" Text="Register" NavigateUrl="~/Registration.aspx" />
                <asp:HyperLink ID="lnkPasswordRecovery" runat="server" Text="Forgot Password" NavigateUrl="~/PasswordRecovery.aspx" />
            </small>
            </LayoutTemplate>
        </asp:Login>   
    </AnonymousTemplate>
    <LoggedInTemplate>
        <asp:LoginName ID="LoginName1" runat="server" FormatString="Hello {0}!" /><br />
        <small>
            <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="~/Default.aspx" LogoutAction="Redirect"/>
        </small>
    </LoggedInTemplate>
</asp:LoginView>
